import ClipboardDirective from "./clipboard";
import Clipboard from "clipboard";

const install = function(Vue) {
  Vue.prototype.Clipboard = Clipboard;
  Vue.directive("clipboard", ClipboardDirective);
};

if (window.Vue) {
  window.clipboard = Clipboard;
  Vue.use(install); // eslint-disable-line
}

Clipboard.install = install;
export default Clipboard;
